package com.scada.hessian.client.impl;

import java.util.List;
import java.util.Map;

import com.scada.inf.RoleVisitor;
import com.scada.model.bean.Role;
import com.scada.model.result.PageInfo;
import com.scada.model.result.ResponseBean;
import com.scada.wechat.hessian.client.BaseClient;
import com.scada.wechat.hessian.client.annotation.HessianNamespace;

@HessianNamespace("roleVisitorService")
public class RoleVisitorClient  extends BaseClient<RoleVisitor> implements RoleVisitor{

	public PageInfo<Role> selectDataList(PageInfo<Role> pageInfo) {
		
		return getVistor().selectDataList(pageInfo);
	}

	public ResponseBean selectAllDataList() {
		
		return getVistor().selectAllDataList();
	}

	public ResponseBean selectCodeExist(String sysRoleCode) {
		
		return getVistor().selectCodeExist(sysRoleCode);
	}

	public ResponseBean insert(Role role) {
		
		return getVistor().insert(role);
	}

	public ResponseBean updateByPrimaryKey(Role role) {
		
		return getVistor().updateByPrimaryKey(role);
	}

	public ResponseBean deleteByPrimaryKey(Map<String, String> map) {
		
		return getVistor().deleteByPrimaryKey(map);
	}

	public ResponseBean selectRoleByPrimaryKey(Integer id) {
		
		return getVistor().selectRoleByPrimaryKey(id);
	}

	public ResponseBean selectRoleByCode(String sysRoleCode) {
		
		return getVistor().selectRoleByCode(sysRoleCode);
	}

	public List<Role> getAllRolesName(Integer userId) {
		
		return getVistor().getAllRolesName(userId);
	}

}
